﻿using DadayunApi.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KbtSync.Model
{

    public class ProductReport
    {
        public List<ProductReportResult> Results { get; set; }
    }

    public class ProductReportResult
    {
        public int RowNum { get; set; }

        [JsonProperty(PropertyName = "F0")]
        public string ErpItemCode { get; set; }

        [JsonProperty(PropertyName = "F1")]
        public string ModelNo { get; set; }
        
        [JsonProperty(PropertyName = "F2")]
        public string ProdName { get; set; }

        [JsonProperty(PropertyName = "F3")]
        public double Version { get; set; }

        [JsonProperty(PropertyName = "F5")]
        public string Spec { get; set; }

        [JsonProperty(PropertyName = "F6", NullValueHandling = NullValueHandling.Ignore)]
        public string Unit { get; set; }

        [JsonProperty(PropertyName = "F7", NullValueHandling = NullValueHandling.Ignore)]
        public string LifeCycle { get; set; }

        [JsonProperty(PropertyName = "F8", NullValueHandling = NullValueHandling.Ignore)]
        public ESalePolities? SalePolity { get; set; }

        [JsonProperty(PropertyName = "F9", NullValueHandling =NullValueHandling.Ignore)]
        public string CustNo { get; set; }


        [JsonProperty(PropertyName = "F14", NullValueHandling = NullValueHandling.Ignore)]
        public double PriceOverSea { get; set; }

        [JsonProperty(PropertyName = "F15", NullValueHandling = NullValueHandling.Ignore)]
        public double Price { get; set; }
        [JsonProperty(PropertyName = "F16", NullValueHandling = NullValueHandling.Ignore)]
        public double Cost { get; set; }


        [JsonProperty(PropertyName = "F17", NullValueHandling = NullValueHandling.Ignore)]
        public string ProdSerie { get; set; }
        
        [JsonProperty(PropertyName = "F18", NullValueHandling = NullValueHandling.Ignore)]
        public string ProdCatalog { get; set; }
        [JsonProperty(PropertyName = "F19", NullValueHandling = NullValueHandling.Ignore)]
        public double MinOrder { get; set; }
        [JsonProperty(PropertyName = "F20", NullValueHandling = NullValueHandling.Ignore)]
        public DateTime OnStoreTime { get; set; }
        public ReportDataObject DataObjs { get; set; }
    }
}
